{include file="common/header.tpl"}
{if $AppUI->id <= 0}
	{include file="index/login.tpl"}  
{else}
	{include file="common/menu.tpl"}
    <div class="rightColumn">
    	<div class="boxContent">
        	<div class="contentItem">
                <div class="contentItems">
                	<div class="headerTitle"><h2><a href="{$smarty.const.HOST_BACKEND}content/index">Nội dung site tĩnh</a> &raquo; Thêm mới</h2></div>
                    <div class="secData">
                    	<form name="frmAdd" id="frmAdd" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}content/save">
                        	{if isset($smarty.session.cerr)}
                            	<div class="userInput">
                                    <span class="errorMessage">{$smarty.session.cerr}</span>
                                </div>
                            {/if}
	                        <div class="userInput">
                            	<label for="ppage">Page <span class="symbolRequired">*</span>:</label>
                                <input type="text" class="text" name="ppage" id="ppage" value="{if isset($smarty.session.post.ppage)}{$smarty.session.post.ppage}{/if}" />
                            </div>
                            <div class="userInput">
                            	<label for="psection">Section:</label>
                                <input type="text" class="text" name="psection" id="psection" value="{if isset($smarty.session.post.psection)}{$smarty.session.post.psection}{/if}" />
                            </div>
                        	<div class="userInput">
                            	<label for="pname">Trang <span class="symbolRequired">*</span>:</label>
                                <input type="text" class="text" name="pname" id="pname" value="{if isset($smarty.session.post.pname)}{$smarty.session.post.pname}{/if}" />
                            </div>
                            <div class="userInput">
                            	<label for="pcontent">Nội dung<span class="symbolRequired">*</span>:</label>
                                {if isset($smarty.session.post.pcontent)}
                                	{"pcontent"|fck:$smarty.session.post.pcontent:"Default":"560":"400px"}
                                {else}
                                	{"pcontent"|fck:"":"Default":"560":"400px"}
                                {/if}
                            </div>
                            <div class="secAction">
                        		<input type="submit" value="Lưu dữ liệu"/>
                               	<input type="reset" value="Nhập lại"/>
                            </div>
                        </form>
                   	</div>
                </div>
          	</div>
        </div>
    </div>
{/if}
{include file="common/footer.tpl"}
                
